/*****************************************************************************************
This file is a part of Arise library.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

Arise Engine		LightSource.h

					E-mail:		arise_engine@mail.ru

created:			18.03.2008
last changes:		18.03.2008
*****************************************************************************************/
#pragma once

#include "SceneObject.h"

#define LIGHT_TYPE_UNKNOWN			(__int16)0x0000
#define LIGHT_TYPE_TARGET_SPOT		(__int16)0x1000
#define LIGHT_TYPE_TARGET_DIRECT	(__int16)0x1001
#define LIGHT_TYPE_OMNI				(__int16)0x1002
#define LIGHT_TYPE_FREE_SPOT		(__int16)0x1003
#define LIGHT_TYPE_FREE_DIRECT		(__int16)0x1004


class LightSource: public SceneObject
{
private:

public:
	LightSource();
	virtual ~LightSource();

	__int16		m_type;
	D3DXVECTOR3	m_target;

	D3DXVECTOR3	m_color;
	float		m_intensity;
	float		m_hotspot;
	float		m_fall_off;
	float		m_attenuation_start;
	float		m_attenuation_end;
	float		m_aspect;
	float		m_target_dist;

	void Dump();
};

